package myapp.framelibrary.skin.config;

import android.content.Context;

/**
 * Created by 超 on 2017/7/6.
 */

public class SkinPreUtils {


    private static Context mContext;

    private SkinPreUtils(Context context){
        this.mContext = context;
    }

    public void clearSkinInfo() {
        saveSkinPath("");
    }

    private static final class Holder{
        private static final SkinPreUtils SKIN_PRE_UTILS = new SkinPreUtils(mContext);
    }

    public static SkinPreUtils getInstance() {
        return Holder.SKIN_PRE_UTILS;
    }

    public void saveSkinPath(String skinPath){
        mContext.getSharedPreferences(SkinConfig.SKIN_INFO_NAME
                ,mContext.MODE_PRIVATE).edit().putString(SkinConfig.SKIN_INFO_NAME,skinPath).commit()
        ;

    }
    public String getSkinPath(){
        mContext.getSharedPreferences(SkinConfig.SKIN_INFO_NAME
                ,mContext.MODE_PRIVATE).edit().putString(SkinConfig.SKIN_INFO_NAME,"").commit()
        ;
        return null;
    }
}
